package com.msmall.community.bbs.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.msmall.base.model.BaseObject;


@Entity
@Table(name="bbs_board")
public class Board extends BaseObject implements Serializable {
	
	private static final long serialVersionUID = 1482524150251724541L;

	@Id
	@Column(name="board_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long boardId;

	@Column(name="p_id")
	private Long parentId;

	/*
	 * 0 不审核  1审核
	 */
	@Column(name="audit")
	private Short audit;

	@Column(name="chinese_name")
	private String chineseName;

	@Column(name="english_name")
	private String englishName;

	@Column(name="description")
	private String description;

	/*
	 * 1可用 0 不可用
	 */
	@Column(name="enabled")
	private Short enabled;

	@Column(name="orders")
	private Integer orders;

	@Transient
	private List<BoardKeyword> keywords;
	
	public Board() {
		super();
	}

	public Long getBoardId() {
		return this.boardId;
	}

	public void setBoardId(Long boardId) {
		this.boardId = boardId;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	
	public Short getAudit() {
		return this.audit;
	}

	public void setAudit(Short audit) {
		this.audit = audit;
	}

	public String getChineseName() {
		return this.chineseName;
	}

	public void setChineseName(String chineseName) {
		this.chineseName = chineseName;
	}

	public String getEnglishName() {
		return this.englishName;
	}

	public void setEnglishName(String englishName) {
		this.englishName = englishName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Short getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public Integer getOrders() {
		return this.orders;
	}

	public void setOrders(Integer orders) {
		this.orders = orders;
	}

	public List<BoardKeyword> getKeywords() {
		return keywords;
	}

	public void setKeywords(List<BoardKeyword> keywords) {
		this.keywords = keywords;
	}

	@Override
	public boolean equals(Object o) {
		return false;
	}

	@Override
	public int hashCode() {
		return 0;
	}

	@Override
	public String toString() {
		return null;
	}

}
